﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace ElfTyping.Animations
{
    public class ElfireBallAnimation : Animation
    {
        public ElfireBallAnimation()
            : base(@"Textures\GameState\Spell_Elfire", 9, 0.5f / 9)
        {
            Frames = new List<Rectangle>()
            {
                new Rectangle(539, 46, 104, 48),
                new Rectangle(642, 46, 104, 48),
                new Rectangle(765, 46, 104, 48),
                new Rectangle(886, 46, 104, 48),
                new Rectangle(999, 46, 104, 48),
                new Rectangle(1122, 46, 104, 48),

                new Rectangle(405, 146, 104, 48),
                new Rectangle(533, 146, 104, 48),

                new Rectangle(1235, 700, 70, 70) // last blank frame
            };

            SetAnimateOnce();
        }
    }

    public class ElfireExplodeAnimation : Animation
    {
        public ElfireExplodeAnimation()
            : base(@"Textures\GameState\Spell_Elfire", 12, 1f / 12)
        {
            Frames = new List<Rectangle>()
            {
                new Rectangle(523, 762, 70, 70),
                new Rectangle(594, 762, 70, 70),
                new Rectangle(664, 762, 70, 70),
                new Rectangle(735, 762, 70, 70),
                new Rectangle(805, 762, 70, 70),   
                new Rectangle(886, 762, 70, 70),
                new Rectangle(961, 762, 70, 70),
                new Rectangle(1040, 762, 70, 70),
                new Rectangle(1115, 762, 70, 70),
                new Rectangle(1194, 762, 70, 70),
                new Rectangle(1276, 762, 70, 70),

                new Rectangle(1276, 700, 70, 70) // last blank frame
            };

            SetAnimateOnce();
        }
    }
}
